#include "RBTree.hpp"
#include <array>

using namespace std;

void test1()
{
	RBTree<int> t;
	array<int, 10> arr = { 4, 2, 6, 1, 3, 5, 15, 7, 16, 14 };
	for (auto e : arr)
	{
		t.insert(e);
	}

	t.inorder();
	cout << "check of RBtree: " << t.check() << endl;
	
	cout << "###########################" << endl;
	
	RBTree<int> t2;
	array<int, 10> arr2 = { 16, 3, 7, 11, 9, 26, 18, 14, 15 };
	for (auto e : arr2)
	{
		t2.insert(e);
	}
	t2.inorder();
	cout << "check of RBtree: " << t2.check() << endl;
	
}

int main()
{
	test1();
	
	return 0;
}